﻿using HOPU.OnlineSchool.Core;
using Mapster;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HOPU.OnlineSchool.Application.Teachers.Dtos
{
    public class TeacherMapper : IRegister
    {
        public void Register(TypeAdapterConfig config)
        {
            //映射
            //原有的，添加对应的dto
            config.ForType<EduTeacher, TeacherListOutput>();
            //添加 映射输入
            config.ForType<TeacherAddInput, EduTeacher>();

            config.ForType<EduTeacher, TeacherDto>();
        }
    }
}
